﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace poo_template
{
    public abstract class GameObject
    {
        public Texture2D image { get; set; }
        public Vector2 position { get; set; }
        public Rectangle rectangle { get; set; }

        public GameObject(Vector2 position, Texture2D image)
        {
            this.image = image;
            this.position = position;
        }

        public virtual void Update(GameTime gameTime)
        {
            this.rectangle = new Rectangle((int)this.position.X, (int)position.Y, this.image.Width, this.image.Height);
        }

        public virtual void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(this.image, this.position, Color.White);
        }
    }
}
